← Back to issue list

PATH auto extended with stage paths

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2012504
Type
issue
State
open
Author
~ondrak
Labels
Created
2023-03-22 11:30:48.778510+00:00
Updated
2023-04-17 20:06:18.344922+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

snapcraft automatically adds <stage>/usr/bin and <stage>/usr/sbin, additionally those paths are added to the beginning. This would usually work for native builds, but causes problems when running cross builds e.g. including python in the snap, would make the next part fail, if it tries to use python from the stage directory, which is of the wrong architecture. As a minimum, this should be avoided if cross-build is detected. It is still questionable if this should be the default behaviour rather than in control of the snapcraft.yaml e.g. staging JRE in the snap, vs using JDK from the build environment.

Evaluation history

No evaluation history available.